From 309cbf5264b7643a2cc1745e3237c651c33eba03 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Wed, 7 Apr 2021 16:00:30 -0400 Subject: [PATCH] add missing file classification test fixtures + gitignore adjustment Signed-off-by: Alex Goodman --- syft/file/test-fixtures/classifiers/negative/.gitignore | 1 + syft/file/test-fixtures/classifiers/negative/libpython2.7.so | 3 +++ syft/file/test-fixtures/classifiers/positive/.gitignore | 1 + syft/file/test-fixtures/classifiers/positive/libpython3.7.so | 2 ++ 4 files changed, 7 insertions(+) create mode 100644 syft/file/test-fixtures/classifiers/negative/.gitignore create mode 100644 syft/file/test-fixtures/classifiers/negative/libpython2.7.so create mode 100644 syft/file/test-fixtures/classifiers/positive/.gitignore create mode 100644 syft/file/test-fixtures/classifiers/positive/libpython3.7.so diff --git a/syft/file/test-fixtures/classifiers/negative/.gitignore b/syft/file/test-fixtures/classifiers/negative/.gitignore new file mode 100644 index 000000000..7424f9e48 --- /dev/null +++ b/syft/file/test-fixtures/classifiers/negative/.gitignore @@ -0,0 +1 @@ +!libpython2.7.so \ No newline at end of file diff --git a/syft/file/test-fixtures/classifiers/negative/libpython2.7.so b/syft/file/test-fixtures/classifiers/negative/libpython2.7.so new file mode 100644 index 000000000..f9e8d96f4 --- /dev/null +++ b/syft/file/test-fixtures/classifiers/negative/libpython2.7.so @@ -0,0 +1,3 @@ +# note: this should NOT match + +DO NOT DETECT \ No newline at end of file diff --git a/syft/file/test-fixtures/classifiers/positive/.gitignore b/syft/file/test-fixtures/classifiers/positive/.gitignore new file mode 100644 index 000000000..5b1ba3eb4 --- /dev/null +++ b/syft/file/test-fixtures/classifiers/positive/.gitignore @@ -0,0 +1 @@ +!libpython3.7.so \ No newline at end of file diff --git a/syft/file/test-fixtures/classifiers/positive/libpython3.7.so b/syft/file/test-fixtures/classifiers/positive/libpython3.7.so new file mode 100644 index 000000000..aea0d1091 --- /dev/null +++ b/syft/file/test-fixtures/classifiers/positive/libpython3.7.so @@ -0,0 +1,2 @@ +# note: this SHOULD match as python 3.7 +noise3.7.4a-vZ9!morenoise \ No newline at end of file