metadep.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
  3. # All rights reserved.
  4. # This component and the accompanying materials are made available
  5. # under the terms of the License "Eclipse Public License v1.0"
  6. # which accompanies this distribution, and is available
  7. # at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. #
  9. # Initial Contributors:
  10. # Nokia Corporation - initial contribution.
  11. #
  12. # Contributors:
  13. #
  14. # Description:
  15. #
  16. from raptor_tests import SmokeTest
  17. def run():
  18. t = SmokeTest()
  19. t.id = "71"
  20. t.name = "metadep"
  21. t.description = """Tests metadata dependency generation. Changes
  22. to bld.infs and mmps can be detected."""
  23. t.usebash = True
  24. t.command = """export SBSLOGFILE SBSMAKEFILE; bash smoke_suite/test_resources/metadep.sh 2>&1"""
  25. t.targets = [
  26. ]
  27. t.mustmatch_multiline = [
  28. """.*Step 1 .*no warnings or errors.*
  29. sbs: build log in.*
  30. \+ sleep 1.*
  31. .*make -rf .*epoc32/build/metadata_all.mk.*
  32. .*make.*epoc32/build/metadata_all.mk. is up to date.*
  33. Step 2 .*
  34. .*RE-RUNNING SBS with previous parameters.*
  35. Step 3 .*
  36. .*RE-RUNNING SBS with previous parameters.*
  37. .*RE-RUNNING SBS with previous parameters.*"""
  38. ]
  39. t.mustnotmatch_multiline = [
  40. """RE-RUNNING SBS with previous parameters.*
  41. RE-RUNNING SBS with previous parameters.*
  42. RE-RUNNING SBS with previous parameters.*
  43. RE-RUNNING SBS with previous parameters.*"""
  44. ]
  45. t.run()
  46. return t