Best Phoronix-test-suite code snippet using check_tests.run
make.inc
Source:make.inc
...29# Makefile include for optimized libraries30# make targets:31# lib - build library of optimized functions32# slib - build shared library33# test - run unit tests of functions34# perf - run performance tests35# install - install headers and libs to system location36# sim - run on simulator37# trace - get simulator trace38# clean - remove object files39version ?= 2.18.040host_cpu ?= $(shell uname -m | sed -e 's/amd/x86_/')41arch ?= $(shell uname | grep -v -e Linux -e BSD )42CC = gcc43AS = yasm44SIM = sde $(SIMFLAGS) --45AWK = awk46DEBUG = -g47DEBUG_yasm = -g dwarf248DEBUG_nasm = -g49# Default arch= build options50CFLAGS_ = -Wall51ASFLAGS_ = -f elf6452ARFLAGS_ = cr $@53STRIP_gcc = strip -d -R .comment $@54# arch=32 build options55ASFLAGS_32 = -f elf3256CFLAGS_32 = -m3257ARFLAGS_32 = cr $@58# arch=win64 build options59ASFLAGS_win64 = -f win6460CFLAGS_icl = -Qstd=c9961ARFLAGS_win64 = -out:$@62# arch=mingw build options63ASFLAGS_mingw = -f win6464ARFLAGS_mingw = cr $@65LDFLAGS_mingw = -Wl,--force-exe-suffix66LDFLAGS_so = -Wl,-soname,$(soname)67ifeq ($(arch),mingw)68 CC=x86_64-w64-mingw32-gcc69 AR=x86_64-w64-mingw32-ar70endif71# arch=noarch build options72ARFLAGS_noarch = cr $@73ifeq ($(arch),noarch)74 host_cpu=base_aliases75endif76ASFLAGS_Darwin = -f macho64 --prefix=_77ARFLAGS_Darwin = -r $@78ifeq ($(arch),Darwin)79 LDFLAGS_so =80 STRIP_gcc =81endif82INCLUDE = $(patsubst %,-I%/,$(subst :, ,$(VPATH)))83CFLAGS = $(CFLAGS_$(arch)) $(CFLAGS_$(CC)) $(DEBUG) -O2 $(DEFINES) $(INCLUDE)84ASFLAGS = $(ASFLAGS_$(arch)) $(ASFLAGS_$(CC)) $(DEBUG_$(AS)) $(DEFINES) $(INCLUDE)85ARFLAGS = $(ARFLAGS_$(arch))86DEFINES += $(addprefix -D , $D)87lsrc += $(lsrc_$(host_cpu))88O = bin89lobj += $(patsubst %.c,%.o,$(patsubst %.asm,%.o,$(lsrc) $(lsrc_intrinsic)))90objs = $(addprefix $(O)/,$(notdir $(lobj)))91lib_name ?= isa-l.a92default: lib slib93# Defaults for windows build94ifeq ($(arch),win64)95 AR=lib96 CC=cl97 OUTPUT_OPTION = -Fo$@98 DEBUG=99 lib_name := $(basename $(lib_name)).lib100endif101lsrcwin64 = $(lsrc)102unit_testswin64 = $(unit_tests)103exampleswin64 = $(examples)104perf_testswin64 = $(perf_tests)105# Build and run unit tests, performance tests, etc.106all_tests = $(notdir $(sort $(perf_tests) $(check_tests) $(unit_tests) $(examples) $(other_tests)))107all_unit_tests = $(notdir $(sort $(check_tests) $(unit_tests)))108all_perf_tests = $(notdir $(sort $(perf_tests)))109all_check_tests = $(notdir $(sort $(check_tests)))110$(all_unit_tests): % : %.c $(lib_name)111$(all_perf_tests): % : %.c $(lib_name)112$(sort $(notdir $(examples))): % : %.c $(lib_name)113$(sort $(notdir $(other_tests))): % : %.c $(lib_name)114sim test trace: $(addsuffix .run,$(all_unit_tests))115perf: $(addsuffix .run,$(all_perf_tests))116check: $(addsuffix .run,$(all_check_tests))117ex: $(notdir $(examples))118all: lib $(all_tests)119other: $(notdir $(other_tests))120tests: $(all_unit_tests)121perfs: $(all_perf_tests)122checks: $(all_check_tests)123check test perf: SIM=124trace: SIMFLAGS = -debugtrace125check test sim:126 @echo Finished running $@127$(objs): | $(O)128$(O): ; mkdir -p $(O)129# Build rule to run tests130$(addsuffix .run,$(all_tests)): %.run : %131 $(SIM) ./$<132 @echo Completed run: $<133# Other build rules134msg = $(if $(DEBUG),DEBUG) $(patsubst 32,32-bit,$(host_cpu)) $D135$(O)/%.o: %.asm136 @echo " ---> Building $< $(msg)"137 @$(AS) $(ASFLAGS) -o $@ $<138$(O)/%.o %.o: %.c139 @echo " ---> Building $< $(msg)"140 @$(COMPILE.c) $(OUTPUT_OPTION) $<141$(all_tests):142 @echo " ---> Building Test $@ $(msg)"143 @$(LINK.o) $(CFLAGS) $^ $(LDLIBS) -o $@144# Target to build lib files145lib: $(lib_name)146ifneq ($(lib_debug),1)147 $(lib_name): DEBUG_$(AS)= # Don't put debug symbols in the lib148 $(lib_name): DEBUG=149 $(lib_name): DEFINES+=-D NDEBUG150endif151ifeq ($(lib_debug),1)152 DEBUG+=-D DEBUG # Define DEBUG for macros153endif154#lib $(lib_name): $(lib_name)(${objs})155$(lib_name): $(objs)156 @echo " ---> Creating Lib $@"157 @$(AR) $(ARFLAGS) $^158 @$(STRIP_$(CC))159# Target for shared lib160so_lib_name = bin/libisal.so161so_lib_inst = $(notdir $(so_lib_name))162so_lib_ver = $(so_lib_inst).$(version)163soname = $(so_lib_inst).$(word 1, $(subst ., ,$(version)))164slib: $(so_lib_name)165aobjs += $(addprefix $(O)/,$(patsubst %.asm,%.o,$(filter %.asm,$(notdir $(lsrc) $(lsrc_intrinsic)))))166shared_objs += $(addprefix $(O)/shared_ver_,$(patsubst %.c,%.o,$(filter %.c,$(notdir $(lsrc) $(lsrc_intrinsic)))))167$(O)/shared_ver_%.o: %.c168 @echo " ---> Building shared $< $(msg)"169 @$(COMPILE.c) $(OUTPUT_OPTION) $<170ifneq ($(lib_debug),1)171 $(so_lib_name): DEBUG_$(AS)=172 $(so_lib_name): DEBUG=173 $(so_lib_name): DEFINES+=-D NDEBUG174endif175$(shared_objs): CFLAGS += -fPIC176$(shared_objs) $(aobjs): | $(O)177$(so_lib_name): LDFLAGS+=$(LDFLAGS_so)178$(so_lib_name): $(shared_objs) $(aobjs)179 @echo " ---> Creating Shared Lib $@"180 @$(CC) $(CFLAGS) --shared $(LDFLAGS) -o $@ $^181 @(cd $(@D); ln -f -s $(so_lib_inst) $(soname))182isa-l.h:183 @echo 'Building $@'184 @echo '' >> $@185 @echo '#ifndef _ISAL_H_' >> $@186 @echo '#define _ISAL_H_' >> $@187 @echo '' >> $@188 @echo '#define.ISAL_MAJOR_VERSION.${version}' | ${AWK} -F . '{print $$1, $$2, $$3}' >> $@189 @echo '#define.ISAL_MINOR_VERSION.${version}' | ${AWK} -F . '{print $$1, $$2, $$4}' >> $@190 @echo '#define.ISAL_PATCH_VERSION.${version}' | ${AWK} -F . '{print $$1, $$2, $$5}' >> $@191 @echo '#define ISAL_MAKE_VERSION(maj, min, patch) ((maj) * 0x10000 + (min) * 0x100 + (patch))' >> $@192 @echo '#define ISAL_VERSION ISAL_MAKE_VERSION(ISAL_MAJOR_VERSION, ISAL_MINOR_VERSION, ISAL_PATCH_VERSION)' >> $@193 @echo '' >> $@194 @for unit in $(sort $(extern_hdrs)); do echo "#include <isa-l/$$unit>" | sed -e 's;include/;;' >> $@; done195 @echo '#endif //_ISAL_H_' >> $@196# Target for install197prefix = /usr/local198install_dirs = $(prefix)/lib $(prefix)/include/isa-l199$(install_dirs): ; mkdir -p $@200install: $(sort $(extern_hdrs)) | $(install_dirs) $(lib_name) $(so_lib_name) isa-l.h201 install -m 644 $(lib_name) $(prefix)/lib/libisal.a202 install -m 644 $^ $(prefix)/include/isa-l/.203 install -m 664 isa-l.h $(prefix)/include/.204 install -m 664 include/types.h $(prefix)/include/isa-l/.205 install -m 664 $(so_lib_name) $(prefix)/lib/$(so_lib_ver)206 (cd $(prefix)/lib && ln -f -s $(so_lib_ver) $(soname) && ln -f -s $(so_lib_ver) $(so_lib_inst))207ifeq ($(shell uname),Darwin)208 (cd $(prefix)/lib && ln -f -s $(so_lib_ver) $(basename $(so_lib_inst)).dylib)209 which glibtool && glibtool --mode=finish $(prefix)/lib210else211 which libtool && libtool --mode=finish $(prefix)/lib || \212 echo 'Lib installed at $(prefix)/lib. Run system-dependent programs to add shared lib path.'213endif214uninstall:215 $(RM) $(prefix)/lib/libisal.a216 $(RM) $(prefix)/lib/$(soname)217 $(RM) $(prefix)/lib/$(so_lib_ver)218 $(RM) $(prefix)/lib/$(so_lib_inst)219 $(RM) -r $(prefix)/include/isa-l220 $(RM) $(prefix)/include/isa-l.h221 $(RM) $(prefix)/lib/$(basename $(so_lib_inst)).dylib222# Collect performance data223rpt_name = perf_report_$(shell uname -n)_$(shell date +%y%m%d).perf224perf_report:225 echo Results for $(rpt_name) >> $(rpt_name)226 $(MAKE) -f Makefile.unx -k perf | tee -a $(rpt_name)227 @echo Summary:228 -grep runtime $(rpt_name)229clean:230 @echo Cleaning up231 @$(RM) -r $(O) *.o *.a $(all_tests) $(lib_name) $(so_lib_name)232doc: isa-l.h233 (cat Doxyfile; echo 'PROJECT_NUMBER=$(version)') | doxygen -234 $(MAKE) -C generated_doc/latex &> generated_doc/latex_build_api.log235 cp generated_doc/latex/refman.pdf isa-l_api_$(version).pdf...
run
Using AI Code Generation
1$obj = new check_tests();2$obj->run();3$obj = new check_tests();4$obj->run();5$obj = new check_tests();6$obj->run();7$obj = new check_tests();8$obj->run();9$obj = new check_tests();10$obj->run();11$obj = new check_tests();12$obj->run();13$obj = new check_tests();14$obj->run();15$obj = new check_tests();16$obj->run();17$obj = new check_tests();18$obj->run();19$obj = new check_tests();20$obj->run();21$obj = new check_tests();22$obj->run();23$obj = new check_tests();24$obj->run();25$obj = new check_tests();26$obj->run();27$obj = new check_tests();28$obj->run();29$obj = new check_tests();30$obj->run();31$obj = new check_tests();32$obj->run();33$obj = new check_tests();34$obj->run();35$obj = new check_tests();36$obj->run();
run
Using AI Code Generation
1$check_tests = new check_tests();2$check_tests->run();3$check_tests = new check_tests();4$check_tests->run();5$check_tests = new check_tests();6$check_tests->run();7$check_tests = new check_tests();8$check_tests->run();9$check_tests = new check_tests();10$check_tests->run();11$check_tests = new check_tests();12$check_tests->run();13$check_tests = new check_tests();14$check_tests->run();15$check_tests = new check_tests();16$check_tests->run();17$check_tests = new check_tests();18$check_tests->run();19$check_tests = new check_tests();20$check_tests->run();21$check_tests = new check_tests();22$check_tests->run();23$check_tests = new check_tests();24$check_tests->run();25$check_tests = new check_tests();26$check_tests->run();27$check_tests = new check_tests();28$check_tests->run();29$check_tests = new check_tests();30$check_tests->run();31$check_tests = new check_tests();
run
Using AI Code Generation
1require_once('check_tests.php');2$check = new check_tests();3$check->run();4require_once('check_tests.php');5$check = new check_tests();6$check->run();7require_once('check_tests.php');8$check = new check_tests();9$check->run();10require_once('check_tests.php');11$check = new check_tests();12$check->run();13require_once('check_tests.php');14$check = new check_tests();15$check->run();16require_once('check_tests.php');17$check = new check_tests();18$check->run();19require_once('check_tests.php');20$check = new check_tests();21$check->run();22require_once('check_tests.php');23$check = new check_tests();24$check->run();25require_once('check_tests.php');26$check = new check_tests();27$check->run();28require_once('check_tests.php');29$check = new check_tests();30$check->run();31require_once('check_tests.php');32$check = new check_tests();33$check->run();34require_once('check_tests.php');35$check = new check_tests();36$check->run();37require_once('check_tests.php');38$check = new check_tests();39$check->run();40require_once('check_tests.php');41$check = new check_tests();
run
Using AI Code Generation
1require_once('check_tests.php');2$test = new check_tests();3$test->run();4require_once('check_tests.php');5$test = new check_tests();6$test->run();7require_once('check_tests.php');8$test = new check_tests();9$test->run();10require_once('check_tests.php');11$test = new check_tests();12$test->run();13require_once('check_tests.php');14$test = new check_tests();15$test->run();16require_once('check_tests.php');17$test = new check_tests();18$test->run();19require_once('check_tests.php');20$test = new check_tests();21$test->run();22require_once('check_tests.php');23$test = new check_tests();24$test->run();25require_once('check_tests.php');26$test = new check_tests();27$test->run();28require_once('check_tests.php');29$test = new check_tests();30$test->run();31require_once('check_tests.php');32$test = new check_tests();33$test->run();34require_once('check_tests.php');35$test = new check_tests();36$test->run();37require_once('check_tests.php
run
Using AI Code Generation
1$check = new check_tests();2$check->run();3$check = new check_tests();4$check->run();5$check = new check_tests();6$check->run();7$check = new check_tests();8$check->run();9$check = new check_tests();10$check->run();11$check = new check_tests();12$check->run();13$check = new check_tests();14$check->run();15$check = new check_tests();16$check->run();17$check = new check_tests();18$check->run();19$check = new check_tests();20$check->run();21$check = new check_tests();22$check->run();23$check = new check_tests();24$check->run();
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Execute automation tests with run on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.
Test now for FreeGet 100 minutes of automation test minutes FREE!!