summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig')
-rw-r--r--t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/some-source.c5
-rw-r--r--t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/waf.in13
2 files changed, 18 insertions, 0 deletions
diff --git a/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/some-source.c b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/some-source.c
new file mode 100644
index 0000000..6691108
--- /dev/null
+++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/some-source.c
@@ -0,0 +1,5 @@
+int fun(int a) {
+ /* There is a valid use for this... probably */
+ return (a * a) >> a;
+}
+
diff --git a/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/waf.in b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/waf.in
new file mode 100644
index 0000000..4fc0412
--- /dev/null
+++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/waf.in
@@ -0,0 +1,13 @@
+#!/usr/bin/python3
+# encoding: ISO-8859-1
+#
+
+# We just do a little python... for the show
+
+import os, sys
+if sys.hexversion<0x203000f: raise ImportError("Waf requires python >= 2.3")
+ # and we are pretending to be a waf script
+
+# okay, that's enough... below we will include a binary tarball...
+# That is as fun as it sounds (which is to say not a lot).
+