Browse Source

Added these meta-tests for CircleCI

Luiserebii 11 months ago
parent
commit
3ce9e13503
Signed by: Luiserebii <luis@serebii.io> GPG Key ID: 525A84BC981B7D3E
2 changed files with 8 additions and 1 deletions
  1. 7
    1
      .circleci/config.yml
  2. 1
    0
      test/src/macro-util.s

+ 7
- 1
.circleci/config.yml View File

@@ -27,8 +27,14 @@ jobs:
27 27
           command: apt-get update && apt-get install -y binutils make
28 28
       - checkout
29 29
       - run:
30
-          name: Run tests
30
+          name: Run main tests
31 31
           command: cd test && make && ./a.out
32
+      - run:
33
+          name: Run test and assert successful return code
34
+          command: cd test && make test-n && ./test-1.out
35
+      - run:
36
+          name: Run test and assert failing return code
37
+          command: bash -c "cd test && make test-n && ./test-2.out; if [[ \$? -eq 2 ]]; then exit 0; else exit 1; fi"
32 38
 
33 39
 workflows:
34 40
   version: 2

+ 1
- 0
test/src/macro-util.s View File

@@ -1,3 +1,4 @@
1
+# Credits to baldr for this mighty macro: http://www.asmcommunity.net/forums/topic/?id=29732
1 2
 .macro stdcall function:req,args:vararg
2 3
     argc=0
3 4
     .ifnb \args

Loading…
Cancel
Save