summaryrefslogtreecommitdiff
path: root/goodfile
diff options
context:
space:
mode:
Diffstat (limited to 'goodfile')
-rw-r--r--goodfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/goodfile b/goodfile
new file mode 100644
index 0000000..c9e521e
--- /dev/null
+++ b/goodfile
@@ -0,0 +1,18 @@
+-- build/test/evaluation via https://git.iximeow.net/build-o-tron
+
+if not Build.environment.has("rustup")
+then
+ Build.error("i don't know i want to handle dependencies yet")
+end
+
+Build.run({"cargo", "build"}, {step="build"})
+Build.run({"cargo", "test"}, {step="test", name="test stdlib/fmt"})
+Build.run({"cargo", "run", "--", "--regs", "rax=4,rcx=5,rip=0x123456789a,eflags=0x206", "03c133c9"})
+
+-- how long does it take to actually run this thing?
+bench_start = Build.now_ms()
+
+Build.run({"./yaxeval", "--regs", "rax=4,rcx=5,rip=0x123456789a,eflags=0x206", "03c133c9"}, {cwd="target/debug"})
+
+bench_end = Build.now_ms()
+Build.metric("simple runtime (ms)", bench_end - bench_start)