shithub: rgbds

Download patch

ref: 9742fa731c40336001cdd47b8401ee2c657f9867
parent: 91a3c538d96c3dfac7f304a0b8f4a35e386f3d77
author: ISSOtm <[email protected]>
date: Tue Sep 22 14:13:26 EDT 2020

Run the quote in file name except on Windows

This should make the CI function again

--- a/.github/workflows/testing.yml
+++ b/.github/workflows/testing.yml
@@ -104,6 +104,10 @@
         shell: bash
         run: |
           cp bins/* .
+      - name: Who am I
+        shell: bash
+        run: |
+          uname
       - name: Run tests
         shell: bash
         run: |
--- /dev/null
+++ b/test/asm/.gitignore
@@ -1,0 +1,1 @@
+quote\"file.*
--- a/test/asm/quote"file.asm
+++ /dev/null
@@ -1,1 +1,0 @@
-WARN __FILE__
--- a/test/asm/quote"file.err
+++ /dev/null
@@ -1,2 +1,0 @@
-warning: quote"file.asm(1): [-Wuser]
-    quote"file.asm
--- a/test/asm/test.sh
+++ b/test/asm/test.sh
@@ -20,6 +20,19 @@
 	cmp $1 $2 || (../../contrib/gbdiff.bash $1 $2; echo "${bold}${red}${i%.asm}${variant}.out.bin mismatch!${rescolors}${resbold}"; false)
 }
 
+# Add the quote test, except on Windows
+if uname | grep -vic mingw; then
+	cat > quote\"file.asm <<EOF
+WARN __FILE__
+EOF
+	cat > quote\"file.out <<EOF
+EOF
+	cat > quote\"file.err <<EOF
+warning: quote"file.asm(1): [-Wuser]
+    quote"file.asm
+EOF
+fi
+
 for i in *.asm; do
 	for variant in '' '.pipe'; do
 		if [ -z "$variant" ]; then