Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "qiutt@fujitsu.com" <qiutt@fujitsu.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH V5] kbd:Add ptest support
Date: Mon, 23 Oct 2023 21:12:45 -0700	[thread overview]
Message-ID: <6763.1698120765303220209@lists.openembedded.org> (raw)
In-Reply-To: <CANNYZj9rnOQ8BugHMLMzEGqFdHtHL+SkFmDjLvgNo8adO4VHVw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 767 bytes --]

Hi, Alex

As you said, it is not-that-elegant bit of code.
But DATADIR is used as a part of CPPFLAGS for compiling c files in tests,
such as libkeymap/libkeymap-test01.c, libkbdfile/libkbdfile-test13.c and others.
sample:

> 
> libkeymap/libkeymap-test01.c: f = fopen( *DATADIR* "/data/libkeymap/charset-keymap0.map",
> "r"); libkeymap/libkeymap-test09.c:   setenv("LOADKEYS_INCLUDE_PATH",
> DATADIR "/data/libkeymap", 1);

libkeymap/ Makefile: (before reset)

> 
> AM_CPPFLAGS = \
> $(CODE_COVERAGE_CPPFLAGS) \
> -I$(top_srcdir)/src/libcommon \
> -I$(top_srcdir)/src/libkbdfile \
> -I$(top_srcdir)/src/libkeymap \
> -DDATADIR=\"$(realpath $(top_srcdir))/tests\" \
> -DBUILDDIR=\"$(realpath $(builddir))\"
> 

Best Regards,
Qiu Tingting

[-- Attachment #2: Type: text/html, Size: 1583 bytes --]

  reply	other threads:[~2023-10-24  4:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23  2:53 [PATCH V5] kbd:Add ptest support qiutt
2023-10-23 11:11 ` [OE-core] " Alexander Kanavin
2023-10-24  4:12   ` qiutt [this message]
2023-10-24  8:50     ` Alexander Kanavin
2023-10-31  8:27       ` Tingting Qiu (Fujitsu)
2023-10-31  9:00         ` Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6763.1698120765303220209@lists.openembedded.org \
    --to=qiutt@fujitsu.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox