aboutsummaryrefslogtreecommitdiffstats
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-10-11 12:57:08 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-10-11 12:57:08 +0300
commit31ad91346b9ee983f361761575d5b29693532fda (patch)
tree4acb0e4c0a84f4817e5864f00e79a162f2f3862a /travis
parent62b8ea045cc4e0e3d80d0e73479f51f73205b068 (diff)
downloadnasm-31ad91346b9ee983f361761575d5b29693532fda.tar.gz
nasm-31ad91346b9ee983f361761575d5b29693532fda.tar.xz
nasm-31ad91346b9ee983f361761575d5b29693532fda.zip
travis: add time
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rw-r--r--travis/test/time.asm16
-rw-r--r--travis/test/time.json13
2 files changed, 29 insertions, 0 deletions
diff --git a/travis/test/time.asm b/travis/test/time.asm
new file mode 100644
index 00000000..63ea32c8
--- /dev/null
+++ b/travis/test/time.asm
@@ -0,0 +1,16 @@
+; Not automatically testable because it is not constant
+;
+; FIXME: Need to adjust code and all this macros for
+; --reproducible NASM option.
+;
+ db __DATE__, 13, 10
+ db __TIME__, 13, 10
+ db __UTC_DATE__, 13, 10
+ db __UTC_TIME__, 13, 10
+
+ align 4
+ dd __DATE_NUM__
+ dd __TIME_NUM__
+ dd __UTC_DATE_NUM__
+ dd __UTC_TIME_NUM__
+ dd __POSIX_TIME__
diff --git a/travis/test/time.json b/travis/test/time.json
new file mode 100644
index 00000000..a18d2cde
--- /dev/null
+++ b/travis/test/time.json
@@ -0,0 +1,13 @@
+[
+ {
+ "description": "Test time macros",
+ "id": "time",
+ "format": "bin",
+ "source": "time.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "time.bin" }
+ ],
+ "disable": "true"
+ }
+]