1. 24 2月, 2014 2 次提交
    • J
      perf tests: Add pmu-bison.o make test · 2a94f6c4
      Jiri Olsa 提交于
      Adding pmu-bison.o make test:
      
        $ make -f tests/make make_util_pmu_bison_o
        - make_util_pmu_bison_o: cd . && make -f Makefile DESTDIR=/tmp/tmp.0u99hQn8Ga util/pmu-bison.o
        $ make -f tests/make make_util_pmu_bison_o_O
        - make_util_pmu_bison_o_O: cd . && make -f Makefile O=/tmp/tmp.sWKDLGS71O DESTDIR=/tmp/tmp.htQNJAfJ0d util/pmu-bison.o
        make: *** [make_util_pmu_bison_o_O] Error 1
      
      The 'O=' version of the test is failing at the moment, due to the OUTPUT
      directory issue fixed in next patch.
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1392805300-14610-2-git-send-email-jolsa@redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      2a94f6c4
    • J
      perf tests: Fix *.o make tests · 04b01a1d
      Jiri Olsa 提交于
      Enable and fix *.o object make tests. Following tests are now available:
      
        $ make -f tests/make make_perf_o_O
        - make_perf_o_O: cd . && make -f Makefile O=/tmp/tmp.iF5vI5emGy DESTDIR=/tmp/tmp.epDPFVhH0s perf.o
        $ make -f tests/make make_util_map_o_O
        - make_util_map_o_O: cd . && make -f Makefile O=/tmp/tmp.BWuMf55ygC DESTDIR=/tmp/tmp.QbGBRF95oP util/map.o
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1392805300-14610-1-git-send-email-jolsa@redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      04b01a1d
  2. 13 1月, 2014 2 次提交
    • A
      perf tools: Add test for building detached source tarballs · 48878053
      Arnaldo Carvalho de Melo 提交于
      Test one of the main kernel Makefile targets to generate a perf sources
      tarball suitable for build outside the full kernel sources.
      
      This is to test that the tools/perf/MANIFEST file lists all the files
      needed to be in such tarball, which sometimes gets broken when we move
      files around, like when we made some files that were in tools/perf/
      available to other tools/ codebases by moving it to tools/include/, etc.
      
      Now everytime we use 'make -C tools/perf -f tests/make' this test will
      be performed, helping detect such problems earlier in the devel cycle.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-gyivwbbu2j7c4j4pwpmttg2p@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      48878053
    • J
      perf tests: Fix installation tests path setup · f7c64474
      Jiri Olsa 提交于
      Currently installation tests work only over x86_64, adding arch check to
      make it work over i386 as well.
      
      NOTE looks like x86 is the only arch running tests, we need some
      IS_(32/64) flag to make this generic.
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1388759553-12974-2-git-send-email-jolsa@redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      f7c64474
  3. 20 12月, 2013 1 次提交
    • J
      perf tests: Factor make install tests · ee4ad93e
      Jiri Olsa 提交于
      Factoring make install tests to check for multiple files. Adding default
      set of installed files for install and install_bin tests.
      
      Putting the 'test' line into the log file instead to the screen as it
      gets more complex now.
      
      If the tests fails to find a file, following message is displayed:
      
      $ make -f tests/make make_install_bin
      - make_install_bin: cd . && make -f Makefile DESTDIR=/tmp/tmp.nCVuQoSHaJ install-bin
        failed to find: bin/perf
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Link: http://lkml.kernel.org/r/1387460527-15030-2-git-send-email-jolsa@redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      ee4ad93e
  4. 23 7月, 2013 5 次提交
  5. 28 5月, 2013 1 次提交
    • J
      perf tools: Add automated make test suite · 095ae69b
      Jiri Olsa 提交于
      Adding automated test for testing the build process.
      
      To run it you need to be in perf directory or specify one with PERF
      variable. It's also possible to specify optional Makefile to test via MK
      variable.
      
      Whole suite is executed twice, the second time with O=/tmp/xxx option
      added.
      
      To run the whole suite:
        $ make -f tests/make
        - make_pure: cd . && make -f Makefile
          test: test -x ./perf
        - make_clean_all: cd . && make -f Makefile clean all
          test: test -x ./perf
        - make_python_perf_so: cd . && make -f Makefile python/perf.so
          test: test -f ./python/perf.so
        - make_debug: cd . && make -f Makefile DEBUG=1
          test: test -x ./perf
        - make_no_libperl: cd . && make -f Makefile NO_LIBPERL=1
          test: test -x ./perf
      
      You see command line for 'make_pure' test right away, and the output is
      stored into 'make_pure' file.
      
      To run simple test:
        $ make -f tests/make make_debug
        - make_debug: cd . && make -f Makefile DEBUG=1
          test: test -x ./perf
      
      At this moment tests checks for successfull build and for existence of
      several built files. Additional after-build checks could be added.
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/r/1369398928-9809-2-git-send-email-jolsa@redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      095ae69b