-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #450 from simsong/rel-2.10
Rel 2.10
- Loading branch information
Showing
22 changed files
with
140 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,13 +58,20 @@ jobs: | |
run: | | ||
echo "" | bash etc/CONFIGURE_UBUNTU22LTS.bash | ||
- name: Make configure script | ||
- name: Version Numbers | ||
run: | | ||
autoconf --version | ||
automake --version | ||
aclocal --version | ||
gcc --version | ||
g++ --version | ||
- name: Files | ||
run: | | ||
find . -print | ||
- name: Make configure script | ||
run: | | ||
bash bootstrap.sh | ||
- name: Dump configure script | ||
|
@@ -84,7 +91,7 @@ jobs: | |
- name: C++ checks optimization with address-sanitizer (Mac and Linux) | ||
run: | | ||
echo === Try Address Sanitizer Optimization === | ||
./configure --enable-address-sanitizer | ||
./configure --enable-address-sanitizer --enable-silent-rules --quiet | ||
make $MAKE_OPTS all | ||
pushd src | ||
make $MAKE_OPTS bulk_extractor | ||
|
@@ -96,7 +103,7 @@ jobs: | |
if: startsWith(matrix.os, 'ubuntu-DISABLED') | ||
run: | | ||
bash bootstrap.sh | ||
./configure --enable-silent-rules --enable-thread-sanitizer | ||
./configure --enable-thread-sanitizer --enable-silent-rules --quiet | ||
make clean | ||
make $MAKE_OPTS all | ||
pushd src | ||
|
@@ -109,7 +116,7 @@ jobs: | |
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
bash bootstrap.sh | ||
./configure --disable-opt CFLAGS='-g -O0 -fprofile-arcs -ftest-coverage' CXXFLAGS='-g -O0 -fprofile-arcs -ftest-coverage' LIBS='-lgcov -lre2' | ||
./configure --disable-opt CFLAGS='-g -O0 -fprofile-arcs -ftest-coverage' CXXFLAGS='-g -O0 -fprofile-arcs -ftest-coverage' --enable-silent-rules --quiet | ||
make clean | ||
make $MAKE_OPTS check || (echo ==error== ; cat test-suite.log; exit 1) | ||
|
@@ -123,21 +130,11 @@ jobs: | |
bash <(curl -s https://codecov.io/bash) | ||
popd | ||
- uses: ammaraskar/[email protected] | ||
name: GCC Problem Matcher | ||
|
||
- name: distcheck | ||
run: | | ||
echo we are doing this because 'make distcheck' makes the source read-only and builds in a _build directory and currently that is broken | ||
bash bootstrap.sh | ||
./configure | ||
make clean | ||
make dist | ||
mv bulk_extractor*.tar.gz /tmp | ||
pushd /tmp | ||
tar xfvz bulk_extractor*.tar.gz | ||
pushd $(basename bulk_extractor*.tar.gz .tar.gz) | ||
ls -l | ||
./configure | ||
make check | ||
popd | ||
./configure -q | ||
make distcheck | ||
- uses: ammaraskar/[email protected] | ||
name: GCC Problem Matcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,3 +101,7 @@ tests/Makefile | |
win32 | ||
win64 | ||
README | ||
*.auto_defs | ||
*.so* | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import fnmatch | ||
import os.path | ||
|
||
|
||
config_root = { | ||
'root':'.', | ||
'outfile':'Makefile.auto_defs', | ||
'rules':[['doc', 'AUTO_DOC_FILES', ['*.pdf', '*.html', '*.txt', '*.md', '*.tex', '*.gitignore']], | ||
['etc', 'AUTO_ETC_FILES', ['*.bash', '*.py', '*.gitignore']], | ||
['python', 'AUTO_PYTHON_FILES', ['*.py']], | ||
['licenses', 'AUTO_LICENSES', ['*']]], | ||
'ignore_fnames':[], | ||
'ignore_paths':[] | ||
} | ||
|
||
config_src = { | ||
'root':'src', | ||
'outfile':'Makefile.auto_defs', | ||
'rules':[['be20_api/', 'AUTO_CPP_FILES', ['*.cpp']], | ||
['be20_api/', 'AUTO_H_FILES', ['*.h']], | ||
['tests/', 'AUTO_TESTS_DIST', ['*']], | ||
['rar/', 'AUTO_RAR_FILES', ['*.cpp','*.hpp']], | ||
['.', 'AUTO_EXTRA_DIST', ['*.md','*.am','*.txt','*.py','*.bash','.gitignore']]], | ||
'ignore_fnames':set(['Makefile.am','Makefile.in', | ||
'dfxml_demo.cpp', | ||
'dfxml_version.cpp', | ||
'iblkfind.cpp', | ||
'test_dfxml.cpp', | ||
'smoke.cpp', | ||
'test_be20_api.cpp', | ||
'test_be20_threadpool.cpp' | ||
]), | ||
'ignore_paths':set(['be20_api/utfcpp/tests', | ||
'be20_api/utfcpp/samples', | ||
'be20_api/tests', | ||
'be20_api/demos'])} | ||
|
||
def build(config): | ||
cwd = os.getcwd() | ||
os.chdir(config['root']) | ||
ignore_fnames = config['ignore_fnames'] | ||
ignore_paths = config['ignore_paths'] | ||
|
||
def should_ignore(full_path): | ||
if os.path.basename(full_path) in ignore_fnames: | ||
return True | ||
for ip in ignore_paths: | ||
if ip in full_path: | ||
return True | ||
return False | ||
|
||
vars = dict() | ||
for (start,name,pats) in config['rules']: | ||
matches = [] | ||
for (root, dirs, files) in os.walk(start, topdown=False): | ||
for fn in files: | ||
for pat in pats: | ||
full_path = os.path.relpath(os.path.join(root,fn)) | ||
if fnmatch.fnmatch(fn, pat) and not should_ignore(full_path): | ||
matches.append( full_path ) | ||
vars[name] = sorted(matches) | ||
with open(config['outfile'],'w') as f: | ||
for (name,matches) in vars.items(): | ||
if len(matches)==0: | ||
continue | ||
f.write(f"\n{name} = ") | ||
for fname in matches: | ||
f.write(f" \\\n\t{fname}") | ||
f.write("\n") | ||
os.chdir(cwd) | ||
|
||
if __name__=="__main__": | ||
build(config_root) | ||
build(config_src) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ x.cpp | |
domexusers.raw* | ||
be_graph.pdf | ||
*.Tpo | ||
Makefile.auto_defs |
Oops, something went wrong.