aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-09-12 00:52:52 +0100
committerTomasz Kramkowski <tk@the-tk.com>2020-09-12 00:52:52 +0100
commit5e4590bc2c99b586defcd425a5b1e3c479c27832 (patch)
tree5385c1934e079d5a6e6a16701563affe1bdffdbe
parent06b25d3cfdfa71e219012366703f2f3d10f8f854 (diff)
downloadpack-5e4590bc2c99b586defcd425a5b1e3c479c27832.tar.gz
pack-5e4590bc2c99b586defcd425a5b1e3c479c27832.tar.xz
pack-5e4590bc2c99b586defcd425a5b1e3c479c27832.zip
unpack_test: Rename to a more generic name
-rw-r--r--.gitignore4
-rw-r--r--all.do2
-rwxr-xr-xscripts/clean2
-rw-r--r--test.c (renamed from unpack_test.c)2
-rw-r--r--test.do3
-rw-r--r--test.inc.do (renamed from unpack_test.inc.do)0
-rw-r--r--test.o.do (renamed from unpack_test.o.do)2
-rw-r--r--unpack_test.do3
8 files changed, 9 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index c29b68d..4dc4c13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
*.d
*.o
-*_test
*.inc
-*_gen
*.args
+test
+test_gen
diff --git a/all.do b/all.do
index ff9812a..0c001aa 100644
--- a/all.do
+++ b/all.do
@@ -1,2 +1,2 @@
#!/bin/sh
-redo-ifchange "$0" "unpack_test"
+redo-ifchange "$0" "test"
diff --git a/scripts/clean b/scripts/clean
index 97d7b0f..42574c9 100755
--- a/scripts/clean
+++ b/scripts/clean
@@ -1,2 +1,2 @@
#!/bin/sh
-find . \( -name '*.d' -o -name '*.o' -o -name '*_gen' -o -name '*.inc' \) -delete
+find . \( -name '*.d' -o -name '*.o' -o -name '*.inc' -o -name 'test_gen' -o -name 'test' \) -delete
diff --git a/unpack_test.c b/test.c
index 28cafdc..08b03b3 100644
--- a/unpack_test.c
+++ b/test.c
@@ -34,7 +34,7 @@ struct test {
} while (0)
#define CHECK_EQUAL(f, a, b) if (a != b) { printf(__FILE__ ":%d %"f" != %"f"\n", __LINE__, a, b); return false; }
-#include "unpack_test.inc"
+#include "test.inc"
TEST(simple0_float, "simple unpack float")
{
diff --git a/test.do b/test.do
new file mode 100644
index 0000000..23f1a0d
--- /dev/null
+++ b/test.do
@@ -0,0 +1,3 @@
+#!/bin/bash
+deps=(test.o common.o unpack.o trace.o)
+. ./link
diff --git a/unpack_test.inc.do b/test.inc.do
index c6d5c1b..c6d5c1b 100644
--- a/unpack_test.inc.do
+++ b/test.inc.do
diff --git a/unpack_test.o.do b/test.o.do
index a7c32b8..f90e621 100644
--- a/unpack_test.o.do
+++ b/test.o.do
@@ -1,4 +1,4 @@
#!/bin/bash
-redo-ifchange "unpack_test.inc"
+redo-ifchange "test.inc"
set -- "$1" "${2%.o}" "$3"
. ./default.o.do
diff --git a/unpack_test.do b/unpack_test.do
deleted file mode 100644
index 9c810c6..0000000
--- a/unpack_test.do
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-deps=(unpack_test.o common.o unpack.o trace.o)
-. ./link