Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Going crazy with Google tests

Going crazy with Google tests

Scheduled Pinned Locked Moved The Lounge
hardwarequestionbusinesshelptutorial
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 1 Offline
    1 Offline
    11917640 Member
    wrote on last edited by
    #1

    Just found an interesting question in SO. Some guy wants to apply Google tests to embedded STM32 program. To do this, they decided to write the STM32 HAL emulation (probably, to run such tests on a PC). Of course, after writing the whole HAL emulation (!!!) they have hundreds linker errors and want to know, how to fix them. But this is not a point. The interesting thing is the idea to make HAL emulation for running Google tests. Isn't this crazy? Finally, their hardware device will be part of some bigger thing. Like aircraft. After aircraft crash, they can say "But Google tests are OK!". In my company, when somebody tries to talk about Google tests for embedded programs, or code analysis for embedded programs (kind of Coverity, no goto please!), or Agile hardware development, I brutally refuse to talk about this. Hope this will never happen.

    OriginalGriffO L Sander RosselS 4 Replies Last reply
    0
    • 1 11917640 Member

      Just found an interesting question in SO. Some guy wants to apply Google tests to embedded STM32 program. To do this, they decided to write the STM32 HAL emulation (probably, to run such tests on a PC). Of course, after writing the whole HAL emulation (!!!) they have hundreds linker errors and want to know, how to fix them. But this is not a point. The interesting thing is the idea to make HAL emulation for running Google tests. Isn't this crazy? Finally, their hardware device will be part of some bigger thing. Like aircraft. After aircraft crash, they can say "But Google tests are OK!". In my company, when somebody tries to talk about Google tests for embedded programs, or code analysis for embedded programs (kind of Coverity, no goto please!), or Agile hardware development, I brutally refuse to talk about this. Hope this will never happen.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      11917640 Member wrote:

      hundreds linker errors and want to know, how to fix them.

      Carefully. Very, very carefully.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • 1 11917640 Member

        Just found an interesting question in SO. Some guy wants to apply Google tests to embedded STM32 program. To do this, they decided to write the STM32 HAL emulation (probably, to run such tests on a PC). Of course, after writing the whole HAL emulation (!!!) they have hundreds linker errors and want to know, how to fix them. But this is not a point. The interesting thing is the idea to make HAL emulation for running Google tests. Isn't this crazy? Finally, their hardware device will be part of some bigger thing. Like aircraft. After aircraft crash, they can say "But Google tests are OK!". In my company, when somebody tries to talk about Google tests for embedded programs, or code analysis for embedded programs (kind of Coverity, no goto please!), or Agile hardware development, I brutally refuse to talk about this. Hope this will never happen.

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        On a serious note, what are they going to use to Google test the HAL Emulator? :~

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony AntiTwitter: @DalekDave is now a follower!

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        P 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          On a serious note, what are they going to use to Google test the HAL Emulator? :~

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony AntiTwitter: @DalekDave is now a follower!

          P Offline
          P Offline
          phil o
          wrote on last edited by
          #4

          They could write a meta-emulator which emulates the test environment for emulated HAL.

          "Five fruits and vegetables a day? What a joke! Personally, after the third watermelon, I'm full."

          OriginalGriffO 1 Reply Last reply
          0
          • P phil o

            They could write a meta-emulator which emulates the test environment for emulated HAL.

            "Five fruits and vegetables a day? What a joke! Personally, after the third watermelon, I'm full."

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            "It's emulators all the way down!"

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony AntiTwitter: @DalekDave is now a follower!

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            1 Reply Last reply
            0
            • 1 11917640 Member

              Just found an interesting question in SO. Some guy wants to apply Google tests to embedded STM32 program. To do this, they decided to write the STM32 HAL emulation (probably, to run such tests on a PC). Of course, after writing the whole HAL emulation (!!!) they have hundreds linker errors and want to know, how to fix them. But this is not a point. The interesting thing is the idea to make HAL emulation for running Google tests. Isn't this crazy? Finally, their hardware device will be part of some bigger thing. Like aircraft. After aircraft crash, they can say "But Google tests are OK!". In my company, when somebody tries to talk about Google tests for embedded programs, or code analysis for embedded programs (kind of Coverity, no goto please!), or Agile hardware development, I brutally refuse to talk about this. Hope this will never happen.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              11917640 Member wrote:

              After aircraft crash, they can say "But Google tests are OK!".

              They can say that, but that won't change anything; Google does not guarantee anything, and no judge will honor the dismissal of responsibility. If the crash was preventable, there's a possibility for criminal charges.

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

              1 Reply Last reply
              0
              • 1 11917640 Member

                Just found an interesting question in SO. Some guy wants to apply Google tests to embedded STM32 program. To do this, they decided to write the STM32 HAL emulation (probably, to run such tests on a PC). Of course, after writing the whole HAL emulation (!!!) they have hundreds linker errors and want to know, how to fix them. But this is not a point. The interesting thing is the idea to make HAL emulation for running Google tests. Isn't this crazy? Finally, their hardware device will be part of some bigger thing. Like aircraft. After aircraft crash, they can say "But Google tests are OK!". In my company, when somebody tries to talk about Google tests for embedded programs, or code analysis for embedded programs (kind of Coverity, no goto please!), or Agile hardware development, I brutally refuse to talk about this. Hope this will never happen.

                Sander RosselS Offline
                Sander RosselS Offline
                Sander Rossel
                wrote on last edited by
                #7

                Some guy on SO: *Writes a HAL emulation* Some guy on SO: *Builds the HAL emulation* HAL emulation: "I'm sorry Dave, I'm afraid I can't do that." Emulation success :D

                Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups