aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/os_SUITE_data
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
committerErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
commit84adefa331c4159d432d22840663c38f155cd4c1 (patch)
treebff9a9c66adda4df2106dfd0e5c053ab182a12bd /lib/kernel/test/os_SUITE_data
downloadotp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz
otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2
otp-84adefa331c4159d432d22840663c38f155cd4c1.zip
The R13B03 release.OTP_R13B03
Diffstat (limited to 'lib/kernel/test/os_SUITE_data')
-rw-r--r--lib/kernel/test/os_SUITE_data/Makefile.src14
-rw-r--r--lib/kernel/test/os_SUITE_data/my_echo.c19
-rw-r--r--lib/kernel/test/os_SUITE_data/unix/.gitignore0
-rwxr-xr-xlib/kernel/test/os_SUITE_data/win32/abin/hello.exebin0 -> 27648 bytes
-rw-r--r--lib/kernel/test/os_SUITE_data/win32/abin/my_adb.bat2
-rw-r--r--lib/kernel/test/os_SUITE_data/win32/abin/my_ar.exe1
-rw-r--r--lib/kernel/test/os_SUITE_data/win32/abin/my_ascii.combin0 -> 5175 bytes
-rw-r--r--lib/kernel/test/os_SUITE_data/win32/bin/.gitignore0
-rw-r--r--lib/kernel/test/os_SUITE_data/win32/current/my_batch.bat2
-rw-r--r--lib/kernel/test/os_SUITE_data/win32/current/my_command.com1
-rw-r--r--lib/kernel/test/os_SUITE_data/win32/current/my_program.exe1
-rw-r--r--lib/kernel/test/os_SUITE_data/win32/usr/bin/.gitignore0
12 files changed, 40 insertions, 0 deletions
diff --git a/lib/kernel/test/os_SUITE_data/Makefile.src b/lib/kernel/test/os_SUITE_data/Makefile.src
new file mode 100644
index 0000000000..912d0cbcb1
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/Makefile.src
@@ -0,0 +1,14 @@
+CC = @CC@
+LD = @LD@
+CFLAGS = @CFLAGS@ -I@erl_include@ @DEFS@
+CROSSLDFLAGS = @CROSSLDFLAGS@
+
+PROGS = my_echo@exe@
+
+all: $(PROGS)
+
+my_echo@exe@: my_echo@obj@
+ $(LD) $(CROSSLDFLAGS) -o my_echo my_echo@obj@ @LIBS@
+
+my_echo@obj@: my_echo.c
+ $(CC) -c -o my_echo@obj@ $(CFLAGS) my_echo.c
diff --git a/lib/kernel/test/os_SUITE_data/my_echo.c b/lib/kernel/test/os_SUITE_data/my_echo.c
new file mode 100644
index 0000000000..2127511dd1
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/my_echo.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+
+int
+main(int argc, char** argv)
+{
+ char* sep = "";
+
+ /*
+ * Echo all arguments separated with '::', so that we can check that
+ * quotes are interpreted correctly.
+ */
+
+ while (argc-- > 1) {
+ printf("%s%s", sep, argv++[1]);
+ sep = "::";
+ }
+ putchar('\n');
+ return 0;
+}
diff --git a/lib/kernel/test/os_SUITE_data/unix/.gitignore b/lib/kernel/test/os_SUITE_data/unix/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/unix/.gitignore
diff --git a/lib/kernel/test/os_SUITE_data/win32/abin/hello.exe b/lib/kernel/test/os_SUITE_data/win32/abin/hello.exe
new file mode 100755
index 0000000000..631d40ccaf
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/win32/abin/hello.exe
Binary files differ
diff --git a/lib/kernel/test/os_SUITE_data/win32/abin/my_adb.bat b/lib/kernel/test/os_SUITE_data/win32/abin/my_adb.bat
new file mode 100644
index 0000000000..a633f83ea5
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/win32/abin/my_adb.bat
@@ -0,0 +1,2 @@
+@echo off
+echo A real batch file.
diff --git a/lib/kernel/test/os_SUITE_data/win32/abin/my_ar.exe b/lib/kernel/test/os_SUITE_data/win32/abin/my_ar.exe
new file mode 100644
index 0000000000..49d0d254c0
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/win32/abin/my_ar.exe
@@ -0,0 +1 @@
+Not really an EXE file.
diff --git a/lib/kernel/test/os_SUITE_data/win32/abin/my_ascii.com b/lib/kernel/test/os_SUITE_data/win32/abin/my_ascii.com
new file mode 100644
index 0000000000..7c7f5729d5
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/win32/abin/my_ascii.com
Binary files differ
diff --git a/lib/kernel/test/os_SUITE_data/win32/bin/.gitignore b/lib/kernel/test/os_SUITE_data/win32/bin/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/win32/bin/.gitignore
diff --git a/lib/kernel/test/os_SUITE_data/win32/current/my_batch.bat b/lib/kernel/test/os_SUITE_data/win32/current/my_batch.bat
new file mode 100644
index 0000000000..a633f83ea5
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/win32/current/my_batch.bat
@@ -0,0 +1,2 @@
+@echo off
+echo A real batch file.
diff --git a/lib/kernel/test/os_SUITE_data/win32/current/my_command.com b/lib/kernel/test/os_SUITE_data/win32/current/my_command.com
new file mode 100644
index 0000000000..847d9fe544
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/win32/current/my_command.com
@@ -0,0 +1 @@
+Not a real COM file.
diff --git a/lib/kernel/test/os_SUITE_data/win32/current/my_program.exe b/lib/kernel/test/os_SUITE_data/win32/current/my_program.exe
new file mode 100644
index 0000000000..90bbf20b8b
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/win32/current/my_program.exe
@@ -0,0 +1 @@
+Not a real EXE file.
diff --git a/lib/kernel/test/os_SUITE_data/win32/usr/bin/.gitignore b/lib/kernel/test/os_SUITE_data/win32/usr/bin/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/kernel/test/os_SUITE_data/win32/usr/bin/.gitignore