<commit_before># This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
include $(wildcard $>/aidacc/tests/*.d)
CLEANDIRS += $(wildcard $>/aidacc/tests/)
aidacc/tests/rpath..libbse ::= ../../lib

# == check--t301-pass.idl ==
aidacc/tests/check--t301-pass.idl: aidacc/tests/t301-pass.idl $(aidacc/aidacc)
	$(QECHO) CHECK $@
	$Q $(aidacc/aidacc) $< # --aida-debug
aidacc/check: aidacc/tests/check--t301-pass.idl

# == check--t302-fail.idl ==
aidacc/tests/check--t302-fail.idl: aidacc/tests/t302-fail.idl aidacc/tests/t302-fail.ref $(aidacc/aidacc)
	$(QECHO) CHECK $@
	$Q $(aidacc/aidacc) --aida-fail-file-test $<	> $@.out
	$Q sed 's/\(:[0-9]\+:[0-9]\+: Trying to find one of \).*/\1.../' < $@.out > $@.notokens && mv $@.notokens $@.out
	$Q diff -up aidacc/tests/t302-fail.ref $@.out && rm -f $@.out
aidacc/check: aidacc/tests/check--t302-fail.idl

# == check--t304-cxxserver-output ==
# test CxxStub Generation for Client & Server
aidacc/tests/check--t304-cxxserver-output: aidacc/tests/t301-pass.idl aidacc/tests/t304-cxxserver.ref $(aidacc/aidacc)	| $>/aidacc/tests/
	$(QECHO) CHECK $@
	$Q cp $< $>/aidacc/tests/t304-testpass.idl
	$Q $(aidacc/aidacc) -x CxxStub -I aidacc/tests -G aidaids -G strip-path=$(abspath $>)/ $>/aidacc/tests/t304-testpass.idl
	$Q cat $>/aidacc/tests/t304-testpass_interfaces.cc		>> $>/aidacc/tests/t304-testpass_interfaces.hh
	$Q cat $>/aidacc/tests/t304-testpass_handles.cc			>> $>/aidacc/tests/t304-testpass_handles.hh
	$Q diff -up aidacc/tests/t304-cxxserver.ref $>/aidacc/tests/t304-testpass_interfaces.hh
	$Q diff -up aidacc/tests/t304-cxxclient.ref $>/aidacc/tests/t304-testpass_handles.hh
aidacc/check: aidacc/tests/check--t304-cxxserver-output

# == check--t305-idlcode-compile ==
aidacc/tests/check--t305-idlcode-compile: aidacc/tests/t301-pass.idl aidacc/tests/t301-inc1.idl aidacc/tests/t301-inc2.idl $(aidacc/aidacc)	| $>/aidacc/tests/
	$(QECHO) CHECK $@
	$Q cp aidacc/tests/t301-inc1.idl $>/aidacc/tests/t305-inc1.idl
	$Q cp aidacc/tests/t301-inc2.idl $>/aidacc/tests/t305-inc2.idl
	$Q cp aidacc/tests/t301-pass.idl $>/aidacc/tests/t305-pass.idl
	$Q $(aidacc/aidacc) -x CxxStub -I aidacc/tests -G strip-path=$(abspath $>)/ $>/aidacc/tests/t305-inc1.idl
	$Q $(aidacc/aidacc) -x CxxStub -I aidacc/tests -G strip-path=$(abspath $>)/ $>/aidacc/tests/t305-inc2.idl
	$Q $(aidacc/aidacc) -x CxxStub -I aidacc/tests -G strip-path=$(abspath $>)/ $>/aidacc/tests/t305-pass.idl
	$Q sed -e '1i#include "t305-inc2_interfaces.cc"' \
	       -e '1i#include "t305-inc1_interfaces.cc"' \
	       -e '1i#define _(x) x'			-i $>/aidacc/tests/t305-pass_interfaces.cc
	$Q sed -e '1i#include "t305-inc2_handles.cc"' \
	       -e '1i#include "t305-inc1_handles.cc"' \
	       -e '1i#define _(x) x'			-i $>/aidacc/tests/t305-pass_handles.cc
	$Q $(CCACHE) $(CXX) $(CXXSTD) -I $(abspath .) -c $>/aidacc/tests/t305-pass_interfaces.cc -o $>/aidacc/tests/t305-pass_interfaces.o
	$Q $(CCACHE) $(CXX) $(CXXSTD) -I $(abspath .) -c $>/aidacc/tests/t305-pass_handles.cc -o $>/aidacc/tests/t305-pass_handles.o
aidacc/check: aidacc/tests/check--t305-idlcode-compile
<commit_msg>AIDACC: tests/Makefile.mk: remove obsolete _() work around<commit_after># This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
include $(wildcard $>/aidacc/tests/*.d)
CLEANDIRS += $(wildcard $>/aidacc/tests/)
aidacc/tests/rpath..libbse ::= ../../lib

# == check--t301-pass.idl ==
aidacc/tests/check--t301-pass.idl: aidacc/tests/t301-pass.idl $(aidacc/aidacc)
	$(QECHO) CHECK $@
	$Q $(aidacc/aidacc) $< # --aida-debug
aidacc/check: aidacc/tests/check--t301-pass.idl

# == check--t302-fail.idl ==
aidacc/tests/check--t302-fail.idl: aidacc/tests/t302-fail.idl aidacc/tests/t302-fail.ref $(aidacc/aidacc)
	$(QECHO) CHECK $@
	$Q $(aidacc/aidacc) --aida-fail-file-test $<	> $@.out
	$Q sed 's/\(:[0-9]\+:[0-9]\+: Trying to find one of \).*/\1.../' < $@.out > $@.notokens && mv $@.notokens $@.out
	$Q diff -up aidacc/tests/t302-fail.ref $@.out && rm -f $@.out
aidacc/check: aidacc/tests/check--t302-fail.idl

# == check--t304-cxxserver-output ==
# test CxxStub Generation for Client & Server
aidacc/tests/check--t304-cxxserver-output: aidacc/tests/t301-pass.idl aidacc/tests/t304-cxxserver.ref $(aidacc/aidacc)	| $>/aidacc/tests/
	$(QECHO) CHECK $@
	$Q cp $< $>/aidacc/tests/t304-testpass.idl
	$Q $(aidacc/aidacc) -x CxxStub -I aidacc/tests -G aidaids -G strip-path=$(abspath $>)/ $>/aidacc/tests/t304-testpass.idl
	$Q cat $>/aidacc/tests/t304-testpass_interfaces.cc		>> $>/aidacc/tests/t304-testpass_interfaces.hh
	$Q cat $>/aidacc/tests/t304-testpass_handles.cc			>> $>/aidacc/tests/t304-testpass_handles.hh
	$Q diff -up aidacc/tests/t304-cxxserver.ref $>/aidacc/tests/t304-testpass_interfaces.hh
	$Q diff -up aidacc/tests/t304-cxxclient.ref $>/aidacc/tests/t304-testpass_handles.hh
aidacc/check: aidacc/tests/check--t304-cxxserver-output

# == check--t305-idlcode-compile ==
aidacc/tests/check--t305-idlcode-compile: aidacc/tests/t301-pass.idl aidacc/tests/t301-inc1.idl aidacc/tests/t301-inc2.idl $(aidacc/aidacc)	| $>/aidacc/tests/
	$(QECHO) CHECK $@
	$Q cp aidacc/tests/t301-inc1.idl $>/aidacc/tests/t305-inc1.idl
	$Q cp aidacc/tests/t301-inc2.idl $>/aidacc/tests/t305-inc2.idl
	$Q cp aidacc/tests/t301-pass.idl $>/aidacc/tests/t305-pass.idl
	$Q $(aidacc/aidacc) -x CxxStub -I aidacc/tests -G strip-path=$(abspath $>)/ $>/aidacc/tests/t305-inc1.idl
	$Q $(aidacc/aidacc) -x CxxStub -I aidacc/tests -G strip-path=$(abspath $>)/ $>/aidacc/tests/t305-inc2.idl
	$Q $(aidacc/aidacc) -x CxxStub -I aidacc/tests -G strip-path=$(abspath $>)/ $>/aidacc/tests/t305-pass.idl
	$Q sed -e '1i#include "t305-inc2_interfaces.cc"' \
	       -e '1i#include "t305-inc1_interfaces.cc"' \
	       -i $>/aidacc/tests/t305-pass_interfaces.cc
	$Q sed -e '1i#include "t305-inc2_handles.cc"' \
	       -e '1i#include "t305-inc1_handles.cc"' \
	       -i $>/aidacc/tests/t305-pass_handles.cc
	$Q $(CCACHE) $(CXX) $(CXXSTD) -I $(abspath .) -c $>/aidacc/tests/t305-pass_interfaces.cc -o $>/aidacc/tests/t305-pass_interfaces.o
	$Q $(CCACHE) $(CXX) $(CXXSTD) -I $(abspath .) -c $>/aidacc/tests/t305-pass_handles.cc -o $>/aidacc/tests/t305-pass_handles.o
aidacc/check: aidacc/tests/check--t305-idlcode-compile

{'fraction_non_alphanumeric': 0.20688540488120252, 'fraction_numerical': 0.05689348634233069, 'mean_word_length': 3.635205992509363, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6780316', 'n_tokens_mistral': 2994, 'n_tokens_neox': 2722, 'n_words': 415}